from Queue import Queue
import threading

db_host = "localhost"
db_user = "root"
db_port = 3306
db_password = "12345"
db_name = "OJ"
db_charset = "UTF-8"
queue_size = 4
count_thread = 4

q = Queue(queue_size)
dblock = threading.Lock()

system_dir = "../data/"

file_name = {
    "c" : "main.c",
    "c++" : "main.cpp",
    "python2" : "main.py",
    "python3" : "main.py"
}

compile_command = {
    "c" : "gcc main.c -W -std=c99 -o main",
    "c++" : "g++ main.cpp -W -o main",
    "python2" : "python2 -m py_compile main.py",
    "python3" : "python3 -m py_compile main.py",
}
